package com.zhou.service;

import com.zhou.entity.PageResult;
import com.zhou.entity.QueryPageBean;
import com.zhou.pojo.Cmedicine;
import com.zhou.pojo.CmedicineMember;
import com.zhou.pojo.Psychological;
import com.zhou.pojo.PsychologicalMember;

import java.util.List;

public interface HealthService {
    //查询全部心理题
    List<Psychological> findAllPsychological() ;
    // 根据手机号保存心理评测档案
    void addPsychologicalMemberByPhone(String phone, Integer[] answerList);

    void addPsychologicalMember(PsychologicalMember psychologicalMember, Integer[] answerList);

    List<Cmedicine> findAllCmedicine();

    void addCmedicineMemberByPhone(String phone, Integer[] answerList);

    void addCmedicineMember(CmedicineMember cmedicineMember, Integer[] answerList);

    PageResult findCmedicineMemberByPage(QueryPageBean queryPageBean);

    PageResult findPsychologicalMemberByPage(QueryPageBean queryPageBean);

    void deleteCmedicineMemberById(Integer id);

    void deletePsychologicalMemberById(Integer id);

    void editCmedicineMember(CmedicineMember cmedicineMember);

    void editPsychologicalMember(PsychologicalMember psychologicalMember);

    List<CmedicineMember> findCmedicineMemberById(Integer id);

    List<PsychologicalMember> findPsychologicalMemberById(Integer id);
}
